home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Frameworks / Grant's CGI Framework 1.0b14 / Interface / Menus / MenuFunc.h < prev   
C/C++ Source or Header  |  1996-04-08  |  1KB  |  72 lines

  1. #pragma once
  2. /*****
  3.  *
  4.  *    menuFunc.h
  5.  *
  6.  *    This is a support file for "Grant's CGI Framework".
  7.  *    Please see the license agreement that accompanies the distribution package
  8.  *    for licensing details.
  9.  *
  10.  *    Copyright ©1995,1996 by Grant Neufeld
  11.  *    grant@acm.com
  12.  *    http://arpp.carleton.ca/grant/
  13.  *
  14.  *****/
  15.  
  16. #include "MyConfiguration.h"
  17. #if kCompileWithForeground
  18.  
  19. /***  CONSTANT DECLARATIONS  ***/
  20.  
  21. #define kmMenuBarID            128        /* resource ID of the main application menubar */
  22. #define kmDefaultMenuStr    299
  23. #define kmTheWholeMenu        0
  24. #define kmAfterOtherMenus    0
  25. #define kmSubMenu            -1
  26.  
  27. #define    kmAppleMenuID        128
  28. #define    kmFileMenuID        129
  29. #define    kmEditMenuID        130
  30.  
  31.  
  32. /***  GLOBAL DECLARATIONS  ***/
  33.  
  34. #ifdef __MainSegment__
  35.     #ifdef _GLOBAL_
  36.         #undef _GLOBAL_
  37.     #endif
  38.     #define    _GLOBAL_
  39. #else
  40.     #ifdef _GLOBAL_
  41.         #undef _GLOBAL_
  42.     #endif
  43.     #define    _GLOBAL_    extern
  44. #endif
  45.  
  46.  
  47. _GLOBAL_    MenuHandle     gmAppleMenu;
  48. _GLOBAL_    MenuHandle    gmFileMenu;
  49. _GLOBAL_    MenuHandle    gmEditMenu;
  50.  
  51.  
  52. #ifdef _GLOBAL_
  53. #undef _GLOBAL_
  54. #endif
  55.  
  56.  
  57. /***  FUNCTION PROTOTYPES  ***/
  58.  
  59.     void    adjustMenus    ( void );
  60.     void    doMenu        ( long, short );    /* menuResult, modifiers */
  61.  
  62.  
  63. #else    /* if not kCompileWithForeground */
  64.  
  65.     /* no interface, so define the menu functions to be nothing */
  66.     #define adjustMenus()    
  67.     #define doMenu(a,b)    
  68.  
  69. #endif    /* kCompileWithForeground */
  70.  
  71. /***** EOF *****/
  72.